package com.wyix.entity;

/**
 * @author wangdx
 * @since 2025/8/5
 */
public class Pet {
    private String id;       // 宠物ID
    private String name;     // 宠物名字
    private String breed;    // 品种（如：布偶猫、金毛犬）
    private boolean isAdopted; // 是否被领养

    public Pet(String id, String name, String breed, boolean isAdopted) {
        this.id = id;
        this.name = name;
        this.breed = breed;
        this.isAdopted = isAdopted;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBreed() {
        return breed;
    }

    public void setBreed(String breed) {
        this.breed = breed;
    }

    public boolean isAdopted() {
        return isAdopted;
    }

    public void setAdopted(boolean adopted) {
        isAdopted = adopted;
    }

    @Override
    public String toString() {
        return "[" + id + " " + name + ", 品种:" + breed + (isAdopted ? ", 已被领养]" : ", 待领养]");
    }
}
